//
//  subNewTableViewCell.m
//  HAODE
//
//  Created by LiYinDi on 15/12/23.
//  Copyright © 2015年 reabam.com. All rights reserved.
//

#import "P004SubNewTableViewCell.h"

@implementation P004SubNewTableViewCell

- (void)awakeFromNib {
//     NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
//     if ([userDefaults objectForKey:@"SUBCELLCHECKED"]) {
//         checked=[userDefaults objectForKey:@"SUBCELLCHECKED"];
//     }
//    else
//    {
//        checked=NO;
//    }
//    if (!checked) {
//        [_addOrSubtractBtn setImage:[UIImage imageNamed:@"yitianjia_new"] forState:UIControlStateNormal];
//    }
//    else
//    {
//      [_addOrSubtractBtn setImage:[UIImage imageNamed:@"tianjia_new"] forState:UIControlStateNormal];
//    }
   }
- (IBAction)addOrSubtractBtnClick:(UIButton *)sender {
    
//    UIImage *img=[UIImage imageNamed:@"yitianjia_new"];
//    if ([sender.currentImage isEqual:img]) {
//      [sender setImage:[UIImage imageNamed:@"tianjia_new"] forState:UIControlStateNormal];
//        
//    }
//    else
//    {
//    [sender setImage:[UIImage imageNamed:@"yitianjia_new"] forState:UIControlStateNormal];
//        
//    }
//    
    if ([self.delegate respondsToSelector:@selector(subAddOrSubtractBtnClick:)]) {
        
        [self.delegate subAddOrSubtractBtnClick:sender.tag];
    }

}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
